/*
Author: William Tumler
Class Name: Arena
Functionality:  This class for the Arena building, and allows for upgrades and increasing money intake
Version number: 0.0.6
Testers: needs to be tested
Date written: November 08, 2011
Date tested: needs to be tested
To-do:
*/

package disease;

public class Arena extends Facilities{
	private int moneyMultiplier;
	private static boolean maxLevel = false;

	public Arena(String type) {
		super(type);
		moneyMultiplier = 1;
	}
	
	public boolean upgradeArena(){
		if( on == true && moneyMultiplier < 3 ){
			System.out.println("arena upgraded");
			moneyMultiplier += 1; 
			super.upgradeBuilding();
			return true;
		}
		else if (on == false){
			System.out.println("can't upgrade arena: closed");
			return false;
		}
			else{
				System.out.println("Cannot upgrade further");
				maxLevel = true;
				return false;
			}
		}
	
	public double getMoneyMultiplier(){
		return moneyMultiplier;
	}
	
    public boolean canUpgrade(){
    	return !maxLevel;
    }
    public boolean getMaxLevel(){
    	return maxLevel;
    }
	
}